cpath = ['/usr/include/SDL']
libs  = ['SDL','SDL_mixer','SDL_image']
lpath = ['/usr/lib/']

cflags = ' -Wall -pedantic'
debug = ARGUMENTS.get('debug', 0)

lib_thing = Environment(CPPFLAGS = cflags)

if int(debug):
	lib_thing.Append(CPPFLAGS = ' -g')

files= Split("""
libthing/CAccum.cpp
libthing/CAnimation.cpp
libthing/CBrick.cpp
libthing/CCore.cpp
libthing/CException.cpp
libthing/CFrame.cpp
libthing/CFx.cpp
libthing/CImage.cpp
libthing/CInputManager.cpp
libthing/CLayer.cpp
libthing/CLogger.cpp
libthing/CObject.cpp
libthing/CScene.cpp
libthing/CSoundManager.cpp
libthing/CSprite.cpp
libthing/CTimerManager.cpp
libthing/CVector.cpp
libthing/CVideoManager.cpp
""")

lthing = lib_thing.SharedLibrary(target = 'libthing/thing', source = files, LIBPATH = lpath, CPPPATH = cpath, LIBS = libs)

